﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.Master" AutoEventWireup="true"
    CodeBehind="WFAtribuirTarefa.aspx.cs" Inherits="s2b.ControleDesenvolvimentoProjetos.Paginas.WFAtribuirTarefa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%--    <%--<table style="width:100%;">
        <tr>
            <td>
                Projeto
            </td>
            <td>
                <asp:DropDownList ID="ddlProjeto" runat="server" Height="16px" Width="69px" 
                    DataSourceID="SqlDataSource1" DataTextField="NOME_PROJETO" 
                    DataValueField="NOME_PROJETO">
                </asp:DropDownList>
                <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*"></asp:Label>
                <asp:RequiredFieldValidator ID="rfvProjeto" runat="server" 
                    ControlToValidate="ddlProjeto" ForeColor="Red">Campo Obrigatório</asp:RequiredFieldValidator>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:CS_DB_Controle_Projeto %>" 
                    SelectCommand="SELECT [NOME_PROJETO] FROM [PROJETO] ORDER BY [NOME_PROJETO]">
                </asp:SqlDataSource>
            </td>
        <tr>
            <td>
              Tarefa
            </td>
            <td>
                 <asp:TextBox ID="txtTarefa" runat="server"></asp:TextBox>
       
                 <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="*"></asp:Label>
                 <asp:RequiredFieldValidator ID="rfvTarefa" runat="server" 
                     ControlToValidate="txtTarefa" ForeColor="Red">Campo Obrigatório</asp:RequiredFieldValidator>
       
            </tr>
        <tr>
            <td>
               Descrição
            </td>
            <td>
                <asp:TextBox ID="txtDescricao" TextMode="MultiLine" runat="server"></asp:TextBox>
                
                <asp:Label ID="Label3" runat="server" ForeColor="Red" Text="*"></asp:Label>
                <asp:RequiredFieldValidator ID="rfvDescricao" runat="server" 
                    ControlToValidate="txtDescricao" ForeColor="Red">Campo Obrigatório</asp:RequiredFieldValidator>
                
            </td>
        </tr>
        <tr>
            <td>
               Funcionário
            </td>
            <td>
                 <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                     ConnectionString="<%$ ConnectionStrings:CS_DB_Controle_Projeto %>" 
                     SelectCommand="SELECT [NOME_FUNC] FROM [FUNCIONARIO] ORDER BY [NOME_FUNC]">
                 </asp:SqlDataSource>
                 <asp:DropDownList ID="ddlFuncionario" runat="server" Height="16px" 
                Width="236px" DataSourceID="SqlDataSource2" DataTextField="NOME_FUNC" 
                     DataValueField="NOME_FUNC">
            </asp:DropDownList>
                 <asp:Label ID="Label4" runat="server" ForeColor="Red" Text="*"></asp:Label>
                 <asp:RequiredFieldValidator ID="rfvFuncionario" runat="server" 
                     ControlToValidate="ddlFuncionario" ForeColor="Red">Campo Obrigatório</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
               Status
            </td>
            <td class="style1">
                <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:CS_DB_Controle_Projeto %>" 
                    SelectCommand="SELECT [DESC_STATUS] FROM [STATUS] ORDER BY [DESC_STATUS]">
                </asp:SqlDataSource>
                <asp:DropDownList ID="ddlStatus" runat="server" DataSourceID="SqlDataSource3">
                </asp:DropDownList>
       
                <asp:Label ID="Label5" runat="server" ForeColor="Red" Text="*"></asp:Label>
                <asp:RequiredFieldValidator ID="rfvStatus" runat="server" 
                    ControlToValidate="ddlStatus" ForeColor="Red">Campo Obrigatório</asp:RequiredFieldValidator>
       
            </td>
        </tr>
        <tr>
             <td colspan="">
                 Inicio
             </td>
             <td>
                 <asp:TextBox ID="txtDtInicio" runat="server" Enabled="False"></asp:TextBox>
                 <asp:ImageButton ID="imgBtnCalendarInicio" runat="server" ImageUrl="~/Util/Imagens/calendar.png"
                OnClick="imgBtnCalendarInicio_Click" Style="text-align: left" CausesValidation="False" />
                                   
                 <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="*"></asp:Label>
                 <asp:RequiredFieldValidator ID="rfvDataInicio" runat="server" 
                     ControlToValidate="txtDtInicio" ForeColor="Red">Campo Obrigatório</asp:RequiredFieldValidator>
                                   
             </td>

        </tr>
        <tr>
             <td>
                 Fim
             </td>
             <%--<td>
                  <asp:TextBox ID="txtDtFim" runat="server" Enabled="False"></asp:TextBox>
                  <asp:ImageButton ID="imgBtnCalendarFim" runat="server" ImageUrl="~/Util/Imagens/calendar.png"
                  OnClick="imgBtnCalendarFim_Click" CausesValidation="False" />
                  
                  <asp:Label ID="Label7" runat="server" ForeColor="Red" Text="*"></asp:Label>
                  <asp:RequiredFieldValidator ID="rfvDatafinal" runat="server" 
                      ControlToValidate="txtDtFim" ForeColor="Red">Campo Obrigatório</asp:RequiredFieldValidator>
                  
             </td>--%>
    <%--     </tr>
        
    </table>--%>
    <table width="100%">
        Atribuir Tarefa
        <tr>
        <td>Funcionário</td>
            <td>
                <asp:DropDownList ID="ddlFuncionario" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlFuncionario_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
        </tr>
        <tr><td>Tarefa</td><td><asp:Label ID="lblTarefa" runat="server"></asp:Label></td></tr>
        <tr>
            <td>
                <asp:Button ID="btnAtribuirTarefa" runat="server" Text="Atribuir Tarefa" OnClick="btnAtribuirTarefa_Click" />
            </td>
        </tr>
        <tr><td><asp:GridView ID="GridView1" runat="server">
    </asp:GridView></td></tr>
    </table>
    
</asp:Content>
